/****************************
Table D1: Summary Statistics
Author: Raluca L. Pahontu
****************************/

preserve 
use $vars using "shp", clear
qui tab rho, gen(rho_)
qui tab new_educ, gen(new_educ_)
qui tab civil_status, gen(civil_status_)
qui xi: estpost sum  spending_demand rho_2 rho_3 log_household_income new_educ_2 new_educ_3 civil_status_2 civil_status_3 owner 
esttab, replace cells("mean(fmt(3)) sd(fmt(3)) min max") noobs  ///
coeflabels(spending_demand  "Social Spending" ///
rho_2 "Risk Rho2" ///
rho_3 "Risk Rho1" ///
log_household_income "Household Income (Log)" ///
new_educ_2 "Medium Education" ///
new_educ_3 "High Education" ///
civil_status_2 "Married" /// 
civil_status_3 "Divorced" /// 
owner "Owner")
qui esttab using "tabd1.tex", label booktabs cells("mean(fmt(3)) sd(fmt(3)) min max") replace nomtitle nonum
restore
